
// BeFileSystem beFileSystem;
// BeFileBuffer beFileBuffer = beFileSystem.load("andy.xml");

#ifndef BE_FILESYSTEM_H_INCLUDED
#define BE_FILESYSTEM_H_INCLUDED

#include <boost/filesystem.hpp>
#include "be_rootpaths.h"
#include "be_file.h"

#include <string>

class BeFilesystem
{
	public:
		static BeFilesystem* Instance();

		void createDirs();
// 		std::string getHomedir();

		std::string findInData( const std::string& file );
		bool load( BeFile& befile, const std::string& file );
		void save(const std::string &filename, const std::string& content);
		void rm(const std::string &filename);
		
		BeRootPaths& getRootPaths() { return berootpaths; }
	protected:
		BeFilesystem();
		~BeFilesystem();
	private:
		static BeFilesystem* _instance;

		BeRootPaths berootpaths;
};

#endif
